<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>样式的继承</title>
    <style>
      /* 只有嵌套关系才有继承 */
      div{
          color: red;
      }
    </style>
</head>
<body>
    <div>
       <span>样式的继承</span>   <!--  span继承了div的样式 -->
    </div>
</body>
</html>